<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>文档标题</title>
	<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1" />
	<meta name="keywords" content="">
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script src="./raphael2.2.6.js"></script>
</head>
<body>
<script>
window.onload = function() {
    var paper = Raphael(0,0,800,600);   // 有四个参数,建立一个800 600的svg

    var path = paper.path('M 300 200 A 100 100 0 1 1 299.999 200').attr('stroke-width', 10);
    path.click(function() {
        path.animate({path: 'M 300 200 A 100 100 0 1 1 300 199.999'}, 1000, 'bounce');
    })
}
</script>
</body>
</html>